package com.kws.merchant.domain;


import com.baomidou.mybatisplus.annotation.*;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.time.LocalDateTime;
import java.util.Date;
import java.io.Serializable;

import com.fasterxml.jackson.annotation.JsonFormat;

/**
 * 合同管理-签名管理(ContractSignature)表实体类
 *
 * @author yxy
 * @since 2024-10-29 15:37:31
 */
@Data
@ApiModel("合同管理-签名管理")
@TableName(value = "tb_contract_signature")
public class ContractSignature extends Model<ContractSignature> implements Serializable {
    private static final long serialVersionUID = 171738250091382196L;

    @TableId(type = IdType.AUTO)
    @ApiModelProperty("$column.comment")
    private Long id;

    @ApiModelProperty("用户id")
    private Long userId;

    @ApiModelProperty("类型0签名 1印章")
    private Integer type;

    @ApiModelProperty("用户名称")
    @TableField(exist = false)
    private String nickName;

    @ApiModelProperty("签名-印章图片")
    private String file;

    @TableField(fill = FieldFill.INSERT)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GTM+8")
    @ApiModelProperty("创建时间")
    private Date createTime;
}
